package com.wsx.first.c;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
import java.util.Scanner;

/**
 * @author: wangshunxi
 * @date: 2022/5/11 14:32
 * @Description:
 */
public class Main0054 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String expression = sc.nextLine();
        ScriptEngineManager seManger = new ScriptEngineManager();
        ScriptEngine sEngine = seManger.getEngineByName("js");
        try {
            String result = String.valueOf(sEngine.eval(expression));
            if (result.contains(".")) {
                String sub = result.substring(0, result.indexOf("."));
                System.out.println(sub);
            } else {
                System.out.println(result);
            }
        } catch (ScriptException e) {
            e.printStackTrace();
        }
        sc.close();
    }


}
